package com.ace3l.legal.gwt.domainmodule.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.ace3l.legal.gwt.domainmodule.client.MailingListService;

import java.io.FileWriter;

/**
 * Created by IntelliJ IDEA.
 * User: ageer
 * Date: Jul 20, 2008
 * Time: 10:29:18 AM
 * To change this template use File | Settings | File Templates.
 */
public class MailingListServiceImpl extends RemoteServiceServlet implements MailingListService {
    public void signUp(String name, String email) {
        try {
            FileWriter fw = new FileWriter("signups.txt", true);
            fw.write(name + ":::" + email + "\n");
            fw.close();
        } catch (Exception e) {

        }
    }
}